#!/bin/sh

if [ -z "$1" ] || [ -z "$2" ];
then
	echo "usage: ./modifyVersion.sh <OLD_VERSION> <NEW_VERSION>"
	exit 0
fi

OLD_VERSION="$1"
NEW_VERSION="$2"

SED_CMD="sed -i s/$OLD_VERSION/$NEW_VERSION/"

#echo command: $SED_CMD

$SED_CMD "chrome/content/flashgot/contents.rdf"
$SED_CMD "chrome/content/flashgot/about.xul"
$SED_CMD "components/flashgotService.js"
$SED_CMD "install.js"
$SED_CMD "install.rdf"

find . -name flashgot.dtd -execdir $SED_CMD {} \; 

